<template>
  <div class="wrap">
    <div class="header">
      <div class="photo">
        <img src="../assets/cat.jpg" alt="" class="photo" />
      </div>
      <div class="tit">
        <div class="title">夏目友人帐</div>
        <div class="person">个性签名</div>
      </div>
    </div>
    <div class="content">
      <van-cell title="服务反馈" />
      <van-cell title="项目评分" />
      <van-cell title="退出登录" @click="leave" />
      <van-cell title="设置" />
    </div>
  </div>
</template>

<script setup>
import { useRouter } from "vue-router";

const router = useRouter();
	const leave = () => {
 //清空sessionStorage
	window.localStorage.clear();
  console.log(sessionStorage);	
  router.push('/login');
  }

</script>

<style lang="less" scoped>
@import url("../style/custom.less");
.wrap {
  height: 100%;
  bottom: 0;
  top: 0;
}
.header {
  display: flex;
  height: 70px;
  padding: 15px 20px 20px 20px;
  background-color: @primary;
}
.photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}
.tit {
  margin-left: 20px;
  padding: 10px;
}
.title {
  font-weight: 900;
  font-size: 20px;
}
.person {
  margin-top: 20px;
}
.content {
  height: 100%;
  margin-top: 15px;
  padding: 0 20px;
  // background-color: @primary-bg;
}
</style>